package test1230am;

public class Test12 {
    public static void main(String[] args) {
        // (12)定义实现m方法：返回3个数中的最大值
        int max = m(2, 3, 5);
        System.out.println(max);
    }
    public static int m(int a, int b, int c) {
        int d =max(max(a,b),c);
        return d;
    }
    public static int max(int a, int b) {
        return a > b ? a : b;
    }
}
